# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-inspect2
_pkgname=inspect2
pkgver=0.1.2
pkgrel=6
pkgdesc='A backport of the Python 3.6 inspect module to Python 2.7-3.5.'
arch=('any')
url='https://pypi.org/project/inspect2/'
license=('PSF')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('3127f5f9d4df321fc0bab1868e1013510e001e82fb77054048e538e5083c0f6964fa0555a6328962f32cdccd24e74454efe28f741d38c9f36c09ee79b96f88ff')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

